\hypertarget{class_q_c_p_grid}{}\section{Q\+C\+P\+Grid Class Reference}
\label{class_q_c_p_grid}\index{Q\+C\+P\+Grid@{Q\+C\+P\+Grid}}


Responsible for drawing the grid of a \mbox{\hyperlink{class_q_c_p_axis}{Q\+C\+P\+Axis}}.  


Inheritance diagram for Q\+C\+P\+Grid\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{class_q_c_p_grid}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_q_c_p_grid_acd1cdd2909625388a13048b698494a17}{Q\+C\+P\+Grid}} (\mbox{\hyperlink{class_q_c_p_axis}{Q\+C\+P\+Axis}} $\ast$parent\+Axis)
\item 
\mbox{\Hypertarget{class_q_c_p_grid_afface6d8cb6df3cbdc0b5c7c2658f96a}\label{class_q_c_p_grid_afface6d8cb6df3cbdc0b5c7c2658f96a}} 
bool {\bfseries sub\+Grid\+Visible} () const
\item 
\mbox{\Hypertarget{class_q_c_p_grid_af16a269b15b2a8d904be087d060536bc}\label{class_q_c_p_grid_af16a269b15b2a8d904be087d060536bc}} 
bool {\bfseries antialiased\+Sub\+Grid} () const
\item 
\mbox{\Hypertarget{class_q_c_p_grid_a578d0bd4d2e5000a2ca69b9a034d59aa}\label{class_q_c_p_grid_a578d0bd4d2e5000a2ca69b9a034d59aa}} 
bool {\bfseries antialiased\+Zero\+Line} () const
\item 
\mbox{\Hypertarget{class_q_c_p_grid_a1d68418766b3408c0b7b29ef40b04c2a}\label{class_q_c_p_grid_a1d68418766b3408c0b7b29ef40b04c2a}} 
Q\+Pen {\bfseries pen} () const
\item 
\mbox{\Hypertarget{class_q_c_p_grid_ae231e5b87e68689a666f90531a15552f}\label{class_q_c_p_grid_ae231e5b87e68689a666f90531a15552f}} 
Q\+Pen {\bfseries sub\+Grid\+Pen} () const
\item 
\mbox{\Hypertarget{class_q_c_p_grid_a85f248487110c4043be696aef5f2f6e1}\label{class_q_c_p_grid_a85f248487110c4043be696aef5f2f6e1}} 
Q\+Pen {\bfseries zero\+Line\+Pen} () const
\item 
void \mbox{\hyperlink{class_q_c_p_grid_ad4ad6bf714ec45e08845456355a1b700}{set\+Sub\+Grid\+Visible}} (bool visible)
\item 
void \mbox{\hyperlink{class_q_c_p_grid_a5692310ba183721a413d60951407d114}{set\+Antialiased\+Sub\+Grid}} (bool enabled)
\item 
void \mbox{\hyperlink{class_q_c_p_grid_a3cc6d54647393ee71afb6da56af07aa4}{set\+Antialiased\+Zero\+Line}} (bool enabled)
\item 
void \mbox{\hyperlink{class_q_c_p_grid_aa05ab9816ffb440908171e45e833b593}{set\+Pen}} (const Q\+Pen \&pen)
\item 
void \mbox{\hyperlink{class_q_c_p_grid_a9edd3593f384d1f0b0202a39cef4453d}{set\+Sub\+Grid\+Pen}} (const Q\+Pen \&pen)
\item 
void \mbox{\hyperlink{class_q_c_p_grid_a209f40fdb252397b418b82d3494d8ea0}{set\+Zero\+Line\+Pen}} (const Q\+Pen \&pen)
\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_c_p_grid_ac5d2c0a3b6212ce1c2c19f5a6df586e5}\label{class_q_c_p_grid_ac5d2c0a3b6212ce1c2c19f5a6df586e5}} 
virtual void {\bfseries apply\+Default\+Antialiasing\+Hint} (\mbox{\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter}} $\ast$painter) const
\item 
\mbox{\Hypertarget{class_q_c_p_grid_ad009c23f96078616aa4f66a750974b23}\label{class_q_c_p_grid_ad009c23f96078616aa4f66a750974b23}} 
virtual void {\bfseries draw} (\mbox{\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter}} $\ast$painter)
\item 
\mbox{\Hypertarget{class_q_c_p_grid_aee4e95d54acabbe298d6dda0dd86c0a4}\label{class_q_c_p_grid_aee4e95d54acabbe298d6dda0dd86c0a4}} 
void {\bfseries draw\+Grid\+Lines} (\mbox{\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter}} $\ast$painter) const
\item 
\mbox{\Hypertarget{class_q_c_p_grid_a751ce8aef815bcc9193432a30c8b6b6e}\label{class_q_c_p_grid_a751ce8aef815bcc9193432a30c8b6b6e}} 
void {\bfseries draw\+Sub\+Grid\+Lines} (\mbox{\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter}} $\ast$painter) const
\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_c_p_grid_a4e4a0400d6319bb44c06341f6298c87b}\label{class_q_c_p_grid_a4e4a0400d6319bb44c06341f6298c87b}} 
bool {\bfseries m\+Sub\+Grid\+Visible}
\item 
\mbox{\Hypertarget{class_q_c_p_grid_a71b7051f833f0c5de3094998d6afdd87}\label{class_q_c_p_grid_a71b7051f833f0c5de3094998d6afdd87}} 
bool {\bfseries m\+Antialiased\+Sub\+Grid}
\item 
\mbox{\Hypertarget{class_q_c_p_grid_a8c0df56ae86440408c050895dcdb922b}\label{class_q_c_p_grid_a8c0df56ae86440408c050895dcdb922b}} 
bool {\bfseries m\+Antialiased\+Zero\+Line}
\item 
\mbox{\Hypertarget{class_q_c_p_grid_a1cdc4a3bccf6a40c2d4360def9fefa40}\label{class_q_c_p_grid_a1cdc4a3bccf6a40c2d4360def9fefa40}} 
Q\+Pen {\bfseries m\+Pen}
\item 
\mbox{\Hypertarget{class_q_c_p_grid_aa9004bc139ad3ea92629f0aaae81d83f}\label{class_q_c_p_grid_aa9004bc139ad3ea92629f0aaae81d83f}} 
Q\+Pen {\bfseries m\+Sub\+Grid\+Pen}
\item 
\mbox{\Hypertarget{class_q_c_p_grid_a379481871f17655c27eda30af233554f}\label{class_q_c_p_grid_a379481871f17655c27eda30af233554f}} 
Q\+Pen {\bfseries m\+Zero\+Line\+Pen}
\item 
\mbox{\Hypertarget{class_q_c_p_grid_a9a8a76731e6e737b65b929fd1995cc88}\label{class_q_c_p_grid_a9a8a76731e6e737b65b929fd1995cc88}} 
\mbox{\hyperlink{class_q_c_p_axis}{Q\+C\+P\+Axis}} $\ast$ {\bfseries m\+Parent\+Axis}
\end{DoxyCompactItemize}
\subsection*{Friends}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_c_p_grid_af123edeca169ec7a31958a1d714e1a8a}\label{class_q_c_p_grid_af123edeca169ec7a31958a1d714e1a8a}} 
class {\bfseries Q\+C\+P\+Axis}
\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
Responsible for drawing the grid of a \mbox{\hyperlink{class_q_c_p_axis}{Q\+C\+P\+Axis}}. 

This class is tightly bound to \mbox{\hyperlink{class_q_c_p_axis}{Q\+C\+P\+Axis}}. Every axis owns a grid instance and uses it to draw the grid lines, sub grid lines and zero-\/line. You can interact with the grid of an axis via \mbox{\hyperlink{class_q_c_p_axis_a63f1dd2df663680d2a8d06c19592dd63}{Q\+C\+P\+Axis\+::grid}}. Normally, you don\textquotesingle{}t need to create an instance of \mbox{\hyperlink{class_q_c_p_grid}{Q\+C\+P\+Grid}} yourself.

The axis and grid drawing was split into two classes to allow them to be placed on different layers (both \mbox{\hyperlink{class_q_c_p_axis}{Q\+C\+P\+Axis}} and \mbox{\hyperlink{class_q_c_p_grid}{Q\+C\+P\+Grid}} inherit from \mbox{\hyperlink{class_q_c_p_layerable}{Q\+C\+P\+Layerable}}). Thus it is possible to have the grid in the background and the axes in the foreground, and any plottables/items in between. This described situation is the default setup, see the \mbox{\hyperlink{class_q_c_p_layer}{Q\+C\+P\+Layer}} documentation. 

\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_q_c_p_grid_acd1cdd2909625388a13048b698494a17}\label{class_q_c_p_grid_acd1cdd2909625388a13048b698494a17}} 
\index{Q\+C\+P\+Grid@{Q\+C\+P\+Grid}!Q\+C\+P\+Grid@{Q\+C\+P\+Grid}}
\index{Q\+C\+P\+Grid@{Q\+C\+P\+Grid}!Q\+C\+P\+Grid@{Q\+C\+P\+Grid}}
\subsubsection{\texorpdfstring{Q\+C\+P\+Grid()}{QCPGrid()}}
{\footnotesize\ttfamily Q\+C\+P\+Grid\+::\+Q\+C\+P\+Grid (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_q_c_p_axis}{Q\+C\+P\+Axis}} $\ast$}]{parent\+Axis }\end{DoxyParamCaption})}

Creates a \mbox{\hyperlink{class_q_c_p_grid}{Q\+C\+P\+Grid}} instance and sets default values.

You shouldn\textquotesingle{}t instantiate grids on their own, since every \mbox{\hyperlink{class_q_c_p_axis}{Q\+C\+P\+Axis}} brings its own \mbox{\hyperlink{class_q_c_p_grid}{Q\+C\+P\+Grid}}. 

\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_q_c_p_grid_a5692310ba183721a413d60951407d114}\label{class_q_c_p_grid_a5692310ba183721a413d60951407d114}} 
\index{Q\+C\+P\+Grid@{Q\+C\+P\+Grid}!set\+Antialiased\+Sub\+Grid@{set\+Antialiased\+Sub\+Grid}}
\index{set\+Antialiased\+Sub\+Grid@{set\+Antialiased\+Sub\+Grid}!Q\+C\+P\+Grid@{Q\+C\+P\+Grid}}
\subsubsection{\texorpdfstring{set\+Antialiased\+Sub\+Grid()}{setAntialiasedSubGrid()}}
{\footnotesize\ttfamily void Q\+C\+P\+Grid\+::set\+Antialiased\+Sub\+Grid (\begin{DoxyParamCaption}\item[{bool}]{enabled }\end{DoxyParamCaption})}

Sets whether sub grid lines are drawn antialiased. \mbox{\Hypertarget{class_q_c_p_grid_a3cc6d54647393ee71afb6da56af07aa4}\label{class_q_c_p_grid_a3cc6d54647393ee71afb6da56af07aa4}} 
\index{Q\+C\+P\+Grid@{Q\+C\+P\+Grid}!set\+Antialiased\+Zero\+Line@{set\+Antialiased\+Zero\+Line}}
\index{set\+Antialiased\+Zero\+Line@{set\+Antialiased\+Zero\+Line}!Q\+C\+P\+Grid@{Q\+C\+P\+Grid}}
\subsubsection{\texorpdfstring{set\+Antialiased\+Zero\+Line()}{setAntialiasedZeroLine()}}
{\footnotesize\ttfamily void Q\+C\+P\+Grid\+::set\+Antialiased\+Zero\+Line (\begin{DoxyParamCaption}\item[{bool}]{enabled }\end{DoxyParamCaption})}

Sets whether zero lines are drawn antialiased. \mbox{\Hypertarget{class_q_c_p_grid_aa05ab9816ffb440908171e45e833b593}\label{class_q_c_p_grid_aa05ab9816ffb440908171e45e833b593}} 
\index{Q\+C\+P\+Grid@{Q\+C\+P\+Grid}!set\+Pen@{set\+Pen}}
\index{set\+Pen@{set\+Pen}!Q\+C\+P\+Grid@{Q\+C\+P\+Grid}}
\subsubsection{\texorpdfstring{set\+Pen()}{setPen()}}
{\footnotesize\ttfamily void Q\+C\+P\+Grid\+::set\+Pen (\begin{DoxyParamCaption}\item[{const Q\+Pen \&}]{pen }\end{DoxyParamCaption})}

Sets the pen with which (major) grid lines are drawn. \mbox{\Hypertarget{class_q_c_p_grid_a9edd3593f384d1f0b0202a39cef4453d}\label{class_q_c_p_grid_a9edd3593f384d1f0b0202a39cef4453d}} 
\index{Q\+C\+P\+Grid@{Q\+C\+P\+Grid}!set\+Sub\+Grid\+Pen@{set\+Sub\+Grid\+Pen}}
\index{set\+Sub\+Grid\+Pen@{set\+Sub\+Grid\+Pen}!Q\+C\+P\+Grid@{Q\+C\+P\+Grid}}
\subsubsection{\texorpdfstring{set\+Sub\+Grid\+Pen()}{setSubGridPen()}}
{\footnotesize\ttfamily void Q\+C\+P\+Grid\+::set\+Sub\+Grid\+Pen (\begin{DoxyParamCaption}\item[{const Q\+Pen \&}]{pen }\end{DoxyParamCaption})}

Sets the pen with which sub grid lines are drawn. \mbox{\Hypertarget{class_q_c_p_grid_ad4ad6bf714ec45e08845456355a1b700}\label{class_q_c_p_grid_ad4ad6bf714ec45e08845456355a1b700}} 
\index{Q\+C\+P\+Grid@{Q\+C\+P\+Grid}!set\+Sub\+Grid\+Visible@{set\+Sub\+Grid\+Visible}}
\index{set\+Sub\+Grid\+Visible@{set\+Sub\+Grid\+Visible}!Q\+C\+P\+Grid@{Q\+C\+P\+Grid}}
\subsubsection{\texorpdfstring{set\+Sub\+Grid\+Visible()}{setSubGridVisible()}}
{\footnotesize\ttfamily void Q\+C\+P\+Grid\+::set\+Sub\+Grid\+Visible (\begin{DoxyParamCaption}\item[{bool}]{visible }\end{DoxyParamCaption})}

Sets whether grid lines at sub tick marks are drawn.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_q_c_p_grid_a9edd3593f384d1f0b0202a39cef4453d}{set\+Sub\+Grid\+Pen}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_q_c_p_grid_a209f40fdb252397b418b82d3494d8ea0}\label{class_q_c_p_grid_a209f40fdb252397b418b82d3494d8ea0}} 
\index{Q\+C\+P\+Grid@{Q\+C\+P\+Grid}!set\+Zero\+Line\+Pen@{set\+Zero\+Line\+Pen}}
\index{set\+Zero\+Line\+Pen@{set\+Zero\+Line\+Pen}!Q\+C\+P\+Grid@{Q\+C\+P\+Grid}}
\subsubsection{\texorpdfstring{set\+Zero\+Line\+Pen()}{setZeroLinePen()}}
{\footnotesize\ttfamily void Q\+C\+P\+Grid\+::set\+Zero\+Line\+Pen (\begin{DoxyParamCaption}\item[{const Q\+Pen \&}]{pen }\end{DoxyParamCaption})}

Sets the pen with which zero lines are drawn.

Zero lines are lines at value coordinate 0 which may be drawn with a different pen than other grid lines. To disable zero lines and just draw normal grid lines at zero, set {\itshape pen} to Qt\+::\+No\+Pen. 

The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/src/charts/qcustomplot/\mbox{\hyperlink{qcustomplot_8h}{qcustomplot.\+h}}\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/src/charts/qcustomplot/\mbox{\hyperlink{qcustomplot_8cpp}{qcustomplot.\+cpp}}\end{DoxyCompactItemize}
